package com.example.demo.service;

import com.example.demo.Pojo.ChildCount;
import com.example.demo.Pojo.JoinFamily;
import com.example.demo.constant.MemberType;

import java.io.IOException;
import java.util.List;

public interface JoinFamilyService {

    public void addGrandPa(String name);

    public void addFamilyMember(String parentId,String name, MemberType type);

    public void addParent(String grandPaId,String name);

    public void addChild(String parentId,String name);

    JoinFamily getFamilyTree(String grandPaId) throws IOException;

    public JoinFamily findFamilyMemberById(String id) throws IOException;

    List<ChildCount> getChildCountAndName(MemberType memberType) throws IOException;
}
